package Content;
/**
 * TCSS 360 - Winter 2014
 * TESK Software
 */

/**
 * Represents a User object.
 * 
 * @author Emily Linniman
 * @version March 2, 2014
 *
 */
public class User {
	
	/** The maximum number of papers a user can handle. */
	public static final int MAX_PAPER_COUNT = 4;
	
	/** An id that identifies the user. */
	private int id;
	
	/** A string that idenitifes the user by name. */
	private String name;
	
	/** A string that represents the password for the user login. */
	private String password;
	
	/** A string that represents the role of the user. */
	private String role;
	
	/**
	 * Constructs a user object.
	 * @param the_name the given name to represent the user
	 * @param the_password the given password for the user login
	 * @param the_role the given role of the user
	 */
	public User(String the_name, String the_password, String the_role) {
		name = the_name;
		password = the_password;
		role = the_role;
	}
	
	/**
	 * Accesses the name of the user.
	 * @return the name of the user
	 */
	public String getName() {
		return name;
	}
	
	/**
	 * Accesses the password of the user.
	 * @return the password of the user
	 */
	public String getPassword() {
		return password;
	}
	
	/**
	 * Sets the password of the user.
	 * @param the_password the given password to set
	 */
	public void setPassword(String the_password) {
		password = the_password;
	}
	
	/**
	 * Accesses the role of the user.
	 * @return the role of the user in string form
	 */
	public String getRole() {
		return role;
	}
}
